/**
 * Domain class: Person
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
package com.gr

class Person {
	
	String name
	String email
	Date birthDate
	Date hiredDate
	Project projectTo
	
	static constraints = {
		name(size: 2..50, blank: false)
		email(email: true, nullable: true)
		birthDate(nullable: true)
		hiredDate(nullable: true)
		projectTo(blank: false)
	}
	
	String toString() {
		return "Person: ${name}"
	}
}

